package com.example.leetcode.graph;

import com.example.leetcode.graph.common.GraphUtils;

class Solution1376 {
    public int numOfMinutes(int n, int headID, int[] manager, int[] informTime) {
        return GraphUtils.numOfMinutes(n, headID, manager, informTime);
    }
}

public class leetcode1376 {
    public static void main(String[] args) {
        Solution1376 solution1376 = new Solution1376();

        int n = 1;
        int headID = 0;
        int[] manager = {-1};
        int[] informTime = {0};
        System.out.println(solution1376.numOfMinutes(n, headID, manager, informTime));

        int n1 = 6;
        int headID1 = 2;
        int[] manager1 = {2, 2, -1, 2, 2, 2};
        int[] informTime1 = {0, 0, 1, 0, 0, 0};
        System.out.println(solution1376.numOfMinutes(n1, headID1, manager1, informTime1));
    }
}
